﻿using System;
using System.Collections.Generic;
using System.Text;

using AKMII.DMRA.Common;
using AKMII.DMRA.DataAccess;

namespace AKMII.DMRA.Business.Management
{
    public class SettingManager
    {
        private SettingAccessor settingAccessor;

        public SettingManager()
        {
            settingAccessor = new SettingAccessor();
        }

        public CommonSetting GetCommonSetting()
        {
            return settingAccessor.GetCommonSetting();
        }

        public List<MonthSetting> GetMonthSettings()
        {
            return settingAccessor.GetMonthSettings();
        }

        public MonthSetting GetMonthSetting(int month)
        {
            return settingAccessor.GetMonthSetting(month);
        }

        public bool UpdateMonthSetting(MonthSetting setting)
        {
            return settingAccessor.UpdateMonthSetting(setting);
        }

        public List<MonthSetting> GetMonthSettingByYear(string year)
        {
            return settingAccessor.GetMonthSettingByYear(year);
        }

        public bool UpdateCommonSetting(CommonSetting setting)
        {
            return settingAccessor.UpdateCommonSetting(setting);
        }
    }
}
